const Koa = require('koa')
const app = new Koa()

const respDurationMiddleware = require('./middleware/koa_response_duration')
const respHeaderMiddleware = require('./middleware/koa_response_header')
const respDataMiddleware = require('./middleware/koa_response_data')
app.use(respDurationMiddleware)
app.use(respHeaderMiddleware)
app.use(respDataMiddleware)

app.listen('8888')

const WebSocketService = require('./service/websocket_service')
WebSocketService.listen()